package org.game.log;

import org.game.db.bean.Mail;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 邮件日志
 * Created by fxf on 2017/7/26.
 */
public class MailLog implements IGameLogger {

    private static Logger logger = LoggerFactory.getLogger("mail");


    private MailLog() {
    }


    /**
     * 新建邮件
     */
    public static int HANDLE_TYPE_CREATE_MAIL = 1;
    /**
     * 读邮件
     */
    public static int HANDLE_TYPE_READ_MAIL = 2;
    /**
     * 获取邮件附件中的资源
     */
    public static int HANDLE_TYPE_GET_RESOURCE = 3;
    /**
     * 删除邮件
     */
    public static int HANDLE_TYPE_DELETE_MAIL = 4;

    /**
     * 记录邮件日志
     *
     * @param pid        玩家id
     * @param mail       邮件
     * @param handleType 操作类型
     */
    public static void logMail(int pid, Mail mail, int handleType) {
//        LogBuilder builder = LogBuilder.newBuilder();
//        builder.append(getPlayerInfo(pid))
//                .append(mail.getId())
//                .append(mail.getAccessoryMap().toString())
//                .append(handleType);
//        logger.info(builder.build());
    }

}
